<%@ page language="java" pageEncoding="UTF-8"%>
<%@page import="java.util.Set"%>
<%@page import="com.shsh.safemanage.model.Department2"%>
<%@page import="com.shsh.safemanage.dao.DepartmentDao"%>
<%@page import="com.shsh.safemanage.dao.DaoCreator"%>
<%@page import="com.shsh.safemanage.dao.EquipmentDao"%>
<%@page import="com.shsh.safemanage.model.Equipment"%>
<%@page import="java.util.List"%>
<%@page import="com.shsh.safemanage.util.Constants"%>
<%@page import="com.shsh.safemanage.model.User"%>

<%
{
User theUser = (User) session.getAttribute(Constants.SESSION_USER);
EquipmentDao theEquipmentDao = DaoCreator.createEquipmentDao();
Set<Equipment> equipList = theEquipmentDao.getUserMappingEquipmentList(theUser.getId(), false);
%>
<select id="equipID" onchange="changeEquip()">
	<%
	for (Equipment equip : equipList) {
	%>
	<option value="<%=equip.getId()%>"%><%=equip.getEquipName()%></option>
	<%
	}
	%>
</select>
<%
}
%>